#include "mainwindow.h"
#include <QApplication>
#include <QTranslator>

#include "debugmain.h"

int main(int argc, char *argv[])
{
#if defined(_MSC_VER) && defined(_DEBUG)
    _CrtSetReportHook(reportHook);
    _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif

    QApplication a(argc, argv);

    QTranslator t;

    if (t.load("qtbase_de"))
        QApplication::installTranslator(&t);
    else
        qDebug("Translation file failed to load!");

    MainWindow w;
    w.show();

    return a.exec();
}
